"""mystrategy URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from myback.views import *
from myback.views_requsts import stg_oprt, stg_para

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', stg_display),
    url(r'^detail/', stg_detail),  # 代码编辑页面
    url(r'^back_dis/', back_html),  # 回测详情页面
    url(r'^back_detail/', back_detail),  # 回测详情数据
    url(r'^stg_add/$', stg_oprt.stgadd),
    url(r'^stg_serarch/$', stg_oprt.stg_search),
    url(r'^stg_del/$', stg_oprt.stg_del),
    url(r'^stg_opr/$', stg_oprt.opt_stg),
    url(r'^detail_income/$', stg_para.detail_incomeStatistics),
    url(r'^detail_cumulative/$', stg_para.detail_cumulativereturns),
    #### 查看详情
    url(r'^incomeStatistics/$', stg_para.back_detail_incomeStatistics.as_view(), name='back_incomeStatistics'),  # 收益概览
    url(r'^cumulativereturns/$', stg_para.back_detail_cumulativereturns.as_view(), name='back_cumulativereturns'),  # 净值曲线

]
